package net.towee.client.event.core;

import java.util.List;

import net.towee.model.repo.NodeData;

import com.google.gwt.event.shared.GwtEvent;

public class NodesRemovedEvent extends GwtEvent<NodesRemovedHandler> {
	public static Type<NodesRemovedHandler> TYPE = new Type<NodesRemovedHandler>();
	private List<NodeData> nodes;
	
	public NodesRemovedEvent(List<NodeData> result) {
		this.nodes = result;
	}

	@Override
	public Type<NodesRemovedHandler> getAssociatedType() {
		return TYPE;
	}

	@Override
	protected void dispatch(NodesRemovedHandler handler) {
		handler.onNodesRemoved(nodes);
	}

}
